package com.joinpay.service.impl;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.joinpay.dao.ProjectDao;
import com.joinpay.model.Project;
import com.joinpay.model.User;
import com.joinpay.service.ProjectService;

@Service
public class ProjectServiceImpl implements ProjectService {

	@Resource
	private ProjectDao projectDao;

	@Override
	@Transactional
	public int addProject(Map map) {
		// TODO Auto-generated method stub
		Project project = new Project();
		project.setRepertory(String.valueOf(map.get("repertory")));
		project.setSvnPath(String.valueOf(map.get("svnPath")));
		project.setType(String.valueOf(map.get("type")));
		project.setDes(String.valueOf(map.get("describe")));
		return projectDao.insert(project);
	}

}
